import { createRouter, createWebHashHistory } from 'vue-router';

const Main = () => import('../views/main.vue');
const Game = () => import('../views/game.vue');

const routes = [
    { path: '/', component: Main },
    { name: 'game', path: '/game/:socketId', component: Game, props: true },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});
export default router;
